package com.xuebang.admin.entity;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name="departments")
public class Department {
	@Id
	private Long departmentId	;//	部门编码	
	
	@Column
	private String name	;		
	
	@Column
	private Date createDate	;
	
	@Column
	private Date modifyDate	;
	
	@Column
	private Long  fatherDepartmentId	;//	上级部门
	
	@Column
	private int operatorId;//操作员id
	public List<Position> positionList;
	public List<Department> childDepartmentList;
	private int  operatorCount=-1;//	部门人数
	
	
	public int getOperatorCount() {
		return operatorCount;
	}

	public void setOperatorCount(int operatorCount) {
		this.operatorCount = operatorCount;
	}

	public List<Position> getPositionList() {
		return positionList;
	}

	public void setPositionList(List<Position> positionList) {
		this.positionList = positionList;
	}

	public List<Department> getChildDepartmentList() {
		return childDepartmentList;
	}

	public void setChildDepartmentList(List<Department> childDepartmentList) {
		this.childDepartmentList = childDepartmentList;
	}

	public Long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Long getFatherDepartmentId() {
		return fatherDepartmentId;
	}

	public void setFatherDepartmentId(Long fatherDepartmentId) {
		this.fatherDepartmentId = fatherDepartmentId;
	}

	public int getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(int operatorId) {
		this.operatorId = operatorId;
	}
	
	

}
